package Operation;

import Book.BookList;

public class ExitSystem implements IOperation {

    @Override
    public void work(BookList bookList) {
        for(int i = 0;i < bookList.getUsedBookList();i ++){
            bookList.setBook(i,null);
        }
        System.out.println("程序退出中......");
        System.out.println("退出成功!");
        System.exit(0);
    }
}
